package com.riko.comic.core.exception;

import com.riko.comic.core.result.ResultCode;
import lombok.Getter;

/**
 * 异常处理类
 *
 * @author riko
 * @since 2021/10/29
 */
public class BaseException extends RuntimeException {

    @Getter
    protected ResultCode resultCode;

    public BaseException(ResultCode resultCode) {
        super(resultCode.getMessage());
        this.resultCode = resultCode;

    }
}
